const conditions = [
  {
    name: 'post.company_id',
    comments: '公司',
    tag: 'el-cascader',
    queryType: '=',
    operations: [{value: '=', label: '等于'}, {value: '<>', label: '不等于'}, {value: 'in', label: '在列表'}, {value: 'not in', label: '不在列表'}],
    attribute: { 
      fieldId: 'id',
      labelField: 'name', 
      className: 'Company', 
      tableId: 'org_company', 
      apiPath: 'org/company',
      filter: ''
    }
  },
  {
    name: 'post.name',
    comments: '岗位名称',
    tag: 'el-input',
    queryType: 'like',
    operations: [{value: 'like', label: '包含'}, {value: 'not like', label: '不包含'},
            {value: '=', label: '等于'}, {value: '<>', label: '不等于'}],
    attribute: {}
  },
  {
    name: 'post.code',
    comments: '岗位编码',
    tag: 'el-input',
    queryType: 'like',
    operations: [{value: 'like', label: '包含'}, {value: 'not like', label: '不包含'},
            {value: '=', label: '等于'}, {value: '<>', label: '不等于'}],
    attribute: {}
  },
  {
    name: 'post.create_by',
    comments: '创建者',
    tag: 'el-input',
    queryType: 'like',
    operations: [{value: 'like', label: '包含'}, {value: 'not like', label: '不包含'},
            {value: '=', label: '等于'}, {value: '<>', label: '不等于'}],
    attribute: {}
  },
  {
    name: 'post.create_date',
    comments: '创建时间',
    tag: 'el-date-picker',
    queryType: '=',
    operations: [ { value: '=', label: '等于' }, { value: '<>', label: '不等于' }, { value: 'between', label: '介于' }, { value: 'not between', label: '不介于' } ],
    attribute: { type: 'datetime', 'value-format': 'YYYY-MM-DD HH:mm:ss' }
  },
  {
    name: 'post.update_by',
    comments: '更新者',
    tag: 'el-input',
    queryType: 'like',
    operations: [{value: 'like', label: '包含'}, {value: 'not like', label: '不包含'},
            {value: '=', label: '等于'}, {value: '<>', label: '不等于'}],
    attribute: {}
  },
  {
    name: 'post.update_date',
    comments: '更新时间',
    tag: 'el-date-picker',
    queryType: '=',
    operations: [ { value: '=', label: '等于' }, { value: '<>', label: '不等于' }, { value: 'between', label: '介于' }, { value: 'not between', label: '不介于' } ],
    attribute: { type: 'datetime', 'value-format': 'YYYY-MM-DD HH:mm:ss' }
  }
]

const meta = [
  {
    id: 'sys_post',
    name: '岗位表',
    conditionPanel: conditions,
    type: 'main',
    dataRules: []
  }
]

export default meta 